package org.example.bighomework.Student;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
//学生表和Student类对应
@Data
@Entity
@Table(name="student")
public class Student {
    @Id
    private String no;//主键
    @Column(name="name")
    private String name;
    @Column(name="age")
    private Integer age;
    @Column(name="sex")
    private String sex;
}
